README file for Keels, Joo, Wiegand Peace Duration paper

Files included in the replication folder. 

REDME: This file!  

Codebook: Codebook that includes information on the variables included in the datasets below, including the complete references for source datasets.

Datasets: 

1. KJW_peaceduration_main.dta: Master dataset with all observations 
2. KJW_peaceduration_spoilerdata.dta: Dataset to run analysis for the spoiler problem section
3. KJW_peaceduration_intangCEM.dta: Dataset to run CEM model for intangible issues 
	Contains observations where the rebel group made at least one intangible claim
4. KJW_peaceduration_endurintangCEM.dta: Dataset to run CEM model for enduring intangible issues
	Contains observations where the rebel group made at least one enduring intangible claim

Codes: 
1. KJW_replication_codes.do: Replication codes for statistical analyses and creating tables 
2. KJW_figure_codes.R: Replication codes for replicating figures 
	-- When running the R code, please replace "Your_Directory" with the directory where the replication dataset is located on your computer. 
	-- You can either run the R file in one run for the main paper section and the online appendix section. 
	-- OR you can first load the analysis data (i.e., codes at the top of each section) and then run the codes for a specific figure. 	
3. build_numreb.R: Code for aggregating the number of rebel groups in a conflict
4. KJW_build.do: Build file that includes information on original data
	source, merging datasets, information on source dataset(s) version, and access date(s) 


Note: There is no particular order for running the files. 
	Both the .do file and the .R files can be run separately. 
	Tables and figures will be automatically saved (either as .smcl, .pdf, or .doc files) when the code is run. 
	The KJW_build.do and build_numreb.R files are for informational purposes only. 
	




